base: For RGB->Y, use sRGB primaries that are adapted to a D50 illuminant.
authorMichael Henning <drawoc@darkrefraction.com>
Sun, 29 Sep 2013 16:48:04 +0000 (12:48 -0400)
committerMichael Henning <drawoc@darkrefraction.com>
Sun, 29 Sep 2013 17:03:32 +0000 (13:03 -0400)
Thanks to Elle Stone for pointing this out.

babl/base/rgb-constants.h

index 8f8b41006f83185f8d0b9fd6a33824eb940ca9ce..0e470563c157f9d6a1d79f2bfef820049620cfd0 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#if 0
-#define CONTEMPORARY_MONITOR
-#endif
+/*
+ * These primaries have been adapted for a D50 illuminant.
+ *
+ * They were taken from here:
+ * http://www.brucelindbloom.com/WorkingSpaceInfo.html#AdaptedPrimaries
+ *
+ * For more information, see this thread:
+ * https://mail.gnome.org/archives/gimp-developer-list/2013-September/msg00113.html
+ */
 
-#ifdef CONTEMPORARY_MONITOR
-  /* source: http://www.poynton.com/ColorFAQ.html */
-  #define RGB_LUMINANCE_RED    (0.212671)
-  #define RGB_LUMINANCE_GREEN  (0.715160)
-  #define RGB_LUMINANCE_BLUE   (0.072169)
-#else
-  /* this is not correct, but the constants are kept around */
-  #define RGB_LUMA_RED         (0.299)
-  #define RGB_LUMA_GREEN       (0.587)
-  #define RGB_LUMA_BLUE        (0.114)
-  #define RGB_LUMINANCE_RED    RGB_LUMA_RED
-  #define RGB_LUMINANCE_GREEN  RGB_LUMA_GREEN
-  #define RGB_LUMINANCE_BLUE   RGB_LUMA_BLUE
-#endif
+#define RGB_LUMINANCE_RED    (0.222491)
+#define RGB_LUMINANCE_GREEN  (0.716888)
+#define RGB_LUMINANCE_BLUE   (0.060621)